package com.qualysys.endereco;

import java.util.List;

import com.qualysys.util.DAOFactory;

public class EnderecoRN {
private EnderecoDAO enderecoDAO;
	
	public EnderecoRN(){
		this.enderecoDAO = DAOFactory.criaEnderecoDAO();
	}

	public void salvar(Endereco e1) {
		this.enderecoDAO.salvar(e1);
		
	}
    public List<Endereco> listar(){
    	return this.enderecoDAO.listar();
    	}
    
    public void excluir(Endereco endereco){
    	this.enderecoDAO.excluir(endereco);
    }
}
